import request from "@/utils/request";

export const reqGetTrademarkList = (page, limit) => {
  return request({
    method: "GET",
    url: `/admin/product/baseTrademark/${page}/${limit}`
  });
};
export const reqAddTrademark = (tmName, logoUrl) => {
  return request({
    method: "POST",
    url: `/admin/product/baseTrademark/save`,
    data: {
      tmName,
      logoUrl
    }
  });
};

export const reqUpdateTrademark = ({ id, logoUrl, tmName }) => {
  return request({
    method: "PUT",
    url: `/admin/product/baseTrademark/update`,
    data: {
      id,
      logoUrl,
      tmName
    }
  });
};
export const reqRemoveTrademark = id => {
  return request({
    method: "DELETE",
    url: `/admin/product/baseTrademark/remove/${id}`
  });
};
